package com.growthsee.rider.enumeration;

/**
 * 验证码类型
 * Created by admin on 2017/3/28.
 */
public enum VerificationTypeEnum {
    registered(1, "手机注册验证码"),
    ModifyRider(0, "修改用户信息验证码");

    private final int value;
    private final String name;

    private VerificationTypeEnum(int v, String desc) {
        this.value = v;
        this.name = desc;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static VerificationTypeEnum get(int strValue) {
        for (VerificationTypeEnum e : values()) {
            if (e.getValue() == strValue) {
                return e;
            }
        }
        return null;
    }
}
